from django.db import models
import json


# Create your models here.
class Data(models.Model):
    id = models.AutoField(primary_key=True)
    open_id = models.CharField(max_length=50, editable=True, null=True)
    name = models.CharField(max_length=50, editable=True, null=True)
    email = models.CharField(max_length=50, editable=True, null=True)
    company = models.CharField(max_length=50, editable=True, null=True)
    is_ai = models.IntegerField(default=0, editable=True, null=True)
    is_more = models.IntegerField(default=0, editable=True, null=True)
    data_n1 = models.TextField(editable=True, null=True)
    data_n2 = models.TextField(editable=True, null=True)
    data_lembed = models.TextField(editable=True, null=True)
    data_lbond = models.TextField(editable=True, null=True)
    data_ahole = models.TextField(editable=True, null=True)
    data_n = models.TextField(editable=True, null=True)
    data_ea = models.TextField(editable=True, null=True)
    data_v = models.TextField(editable=True, null=True)
    data_pg1 = models.TextField(editable=True, null=True)
    data_pg2 = models.TextField(editable=True, null=True)
    data_pmax = models.TextField(editable=True, null=True)
    up_file_name = models.TextField(editable=True, null=True)
    en_file_name = models.TextField(editable=True, null=True)
    ch_file_name = models.TextField(editable=True, null=True)
    y_predict = models.TextField(editable=True, null=True)
    create_time = models.DateTimeField(auto_now_add=True, editable=True, null=True)
    create_id = models.CharField(max_length=50, editable=True, null=True)
    update_time = models.DateTimeField(auto_now_add=True, editable=True, null=True)
    update_id = models.CharField(max_length=50, editable=True, null=True)

    class Meta:
        db_table = "anchor_data"
